package com.hnd.springframerwork.beans.factory.config;

import com.hnd.springframerwork.beans.PropertyValues;

/**
 * bean 定义实例
 */
public class BeanDefinition {
    private String beanName;
    private Class beanClazz;
    private PropertyValues propertyValues;

    public BeanDefinition(String beanName, Class beanClazz) {
        this(beanName, beanClazz, null);
    }

    public BeanDefinition(String beanName, Class beanClazz, PropertyValues propertyValues) {
        this.beanName = beanName;
        this.beanClazz = beanClazz;
        this.propertyValues = propertyValues == null?new PropertyValues():propertyValues;
    }

    public String getBeanName() {
        return beanName;
    }

    public Class getBeanClazz() {
        return beanClazz;
    }

    public PropertyValues getPropertyValues() {
        return propertyValues;
    }
}
